@extends('client/layoutIndex')

{{--@yield('title')--}}

{{--@stop--}}

{{--@yield('link')--}}
<link rel="stylesheet" href="{{ asset('client/css/login.css') }}">
{{--@stop--}}
@section('content')
		<div class="form">
			<div style="width:1200px;margin:auto;height:600px;">
				<div class="form-ggw">
					<div class="ggw1"><img src="{{ asset('productImg/'.$ad4->picture) }}" width="180px" height="200px"></div>
					<div class="ggw2"><img src="{{ asset('productImg/'.$ad5->picture) }}" width="180px" height="200px"></div>
				</div>
				<span id="msg" style="display: none;">
					@if( !empty(Session::get('show_warning')))
						<div style="width: 100%;height: 30px;margin:0 auto;">
							<span style="color: red;display: block;text-align: center;font-size: 18px;line-height: 30px;">{{ Session::get('show_warning') }}</span>
						</div>
					@elseif (count($errors) > 0)
						@foreach ($errors->all() as $error)
							<div style="width: 100%;height: 30px;">
								<span style="color: red;display: block; width: 400px;text-align: center;font-size: 20px;line-height: 30px;">{{ $error }}</span>
							</div>
						@endforeach
					@endif
				</span>
				<script type="text/javascript">
					var _msg = $('#msg div span').text();
					if(_msg != ''){
						layer.msg(_msg);
					}
				</script>
				<div class="form-login">
					<div class="form-denglu">
						<h3 style="font-weight:bold;">账号登录</h3>
						<span></span>
						<img src="{{ asset('client/image/xvxian.png') }}">
					</div>
					<div class="form-form">
						<form method="post" action="{{ url('client/login') }}" class="form-horizontal">
							{{csrf_field()}}
							<div class="form-group" style="margin:30px;">
								<label class="col-md-3 col-sm-3 col-xs-3">用户名:</label>
								<div class="col-md-5 col-sm-5 col-xs-5">
									<input type="text" class="form-control" name="name" placeholder="车牌号">
								</div>
							</div>
							<div class="form-group" style="margin:30px;">
								<label class="col-md-3 col-sm-3 col-xs-3">密码：</label>
								<div class=" col-md-5 col-sm-5 col-xs-5">
									<input type="password" name="password" class="form-control" placeholder="密码">
								</div>
							</div>

							<div class="form-group" style="margin:30px;">
								<label class="col-md-3 col-sm-3 col-xs-3">验证码：</label>
								<div class="col-md-5 col-sm-5 col-xs-5">
									<input type="text"  placeholder="验证码" id="code" name="code" minlength="4" maxlength="4" class="clear-input form-control"  required />
								</div>
								<div class="col-md-4 col-sm-4 col-xs-4">
									<img src="{{ url('/client/captcha') }}" onclick="this.src='/captcha?'+Math.random()" style="width: 110px; cursor:pointer;display:inline-block;float:left;" alt="点击刷新验证码">
								</div>
							</div>
							<div class="form-group" style="margin:30px;">
								<div class="col-md-offset-3 col-md-6 col-sm-offset-3 col-sm-6 col-xs-offset-3 col-xs-6">
								<input type="submit" class="btn btn-danger denglu" value="登&nbsp;&nbsp;录">
								</div>
							</div>
							<div class="row" style="margin:30px;margin-top:80px;">
								<div class="col-md-offset-1 col-md-3 col-sm-offset-1 col-sm-3 col-xs-offset-1 col-xs-3" style="text-align:center;">
									<a href="{{ url('client/toRegister') }}" style="color:#ccc;">免费注册></a>
								</div>
								<div class="col-md-offset-3 col-md-3 col-sm-offset-3 col-sm-3 col-xs-offset-3 col-xs-3" style="color:#ccc;text-align:center;">
									<a href="{{ url('client/forgetPass') }}" style="color:#ccc;">忘记密码了?</a>
								</div>
							</div>
						</form>
					</div>
				</div>
				<div class="form-ggw1">
					<div class="ggw3"><img src="{{ asset('productImg/'.$ad6->picture) }}" width="239px" height="310px"></div>
				</div>
			</div>
		</div>

@stop
